#ifndef EXEC_WORKER_H
#define EXEC_WORKER_H

#include <QObject>
#include <QDebug>
#include <QThread>

class ExecWorker : public QObject
{
Q_OBJECT

public:
    explicit ExecWorker(QObject *parent = nullptr);

public slots:
    //线程入参
    void doWork(QStringList cmd, QString metaStr);

signals:
    //响应信号
    void onFinish(QString res, QString metaStr);

private:
    //parent
    QObject *selfP;

};

#endif // EXEC_WORKER_H
